package hn.cch.controller;

import hn.cch.entity.Message;
import hn.cch.entity.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {


    private final static Logger logger= LoggerFactory.getLogger(UserController.class);

    @RequestMapping(value="/form",method= RequestMethod.POST)
    @ResponseBody
    public Message form(User user){
        logger.info("form:{}", user);
        return Message.success();
    }
}
